//
//  DataSave.swift
//  car
//
//  Created by 范俊伟 on 2024/1/12.
//

import SwiftUI

class SaveData:Equatable{
    static func == (lhs: SaveData, rhs: SaveData) -> Bool {
        return lhs.x==rhs.x && lhs.y == rhs.y && lhs.beep == rhs.beep
    }
    
    @Published public var x:Int
    @Published public var y:Int
    @Published public var beep:Int
    init(x: Int, y: Int, beep: Int) {
        self.x = x
        self.y = y
        self.beep = beep
    }
}
